Page({
  data: {
    activeIndex: 0,
    isLoading: false,
  },
  changeIndex(e) {
    this.setData({
      activeIndex: e.mark.index,
    });
  },
  onEnd() {
    console.log("触底了");
  },
  onLoad() {
    console.log("加载数据");
    setTimeout(() => {
      this.setData({
        isLoading: false,
      });
    }, 2000);
  },
  fn1(e) {
    console.log(e);
  },
  fn2(e) {
    console.log(e);
  },
  fn3(e) {
    console.log(e);
  },
  fn4(e) {
    console.log(e);
  },
});
